﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using WF_QLThuVien.Entities.PhieuMuon;

namespace WF_QLThuVien.Entities.PhieuMuon
{
    public class CPhieuMuon
    {
        private string m_phieuMuonID;

        public string PhieuMuonID
        {
            get { return m_phieuMuonID; }
            set { m_phieuMuonID = value; }
        }

        private string m_docGiaID;

        public string DocGiaID
        {
            get { return m_docGiaID; }
            set { m_docGiaID = value; }
        }

        private DateTime m_ngayLap;

        public DateTime NgayLap
        {
            get { return m_ngayLap; }
            set { m_ngayLap = value; }
        }

        private List<CCTPhieuMuon> m_ctPhieuMuon;

        public List<CCTPhieuMuon> CtPhieuMuon
        {
            get { return m_ctPhieuMuon; }
            set { m_ctPhieuMuon = value; }
        }

        public CPhieuMuon(DataRow r)
        {
            m_docGiaID = r["DocGiaID"].ToString();
            m_ngayLap = (DateTime)r["NgayLap"];
            m_phieuMuonID = r["PhieuMuonID"].ToString();
        }

        public CPhieuMuon()
        {
            m_docGiaID = "";
            m_phieuMuonID = "";
            m_ngayLap = DateTime.Now;
            m_ctPhieuMuon = new List<CCTPhieuMuon>();
        }
    }
}
